package top.javarem.medical.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import top.javarem.medical.domain.dto.AnswerResultDTO;
import top.javarem.medical.domain.dto.AnswerSubmitDTO;
import top.javarem.medical.domain.dto.QuestionDTO;
import top.javarem.medical.domain.po.Question;
import top.javarem.medical.domain.vo.AdminQuestionVO;
import top.javarem.medical.domain.vo.QuestionDetailVO;
import top.javarem.medical.domain.vo.QuestionVO;

import java.util.List;

/**
* @description 针对表【question(题库表)】的数据库操作Service
*/
public interface QuestionService extends IService<Question> {

    List<QuestionDTO> queryByCategoryId(Integer categoryId);

    AnswerResultDTO checkAnswer(AnswerSubmitDTO answerSubmitDTO);

    List<AdminQuestionVO> pageQuery(Integer categoryId, String type, Integer difficulty, Integer pageNum, Integer pageSize);

    Boolean addQuestion(QuestionVO vo);

    Boolean updateQuestion(QuestionVO vo);

    Boolean deleteQuestion(Long id);

    QuestionDetailVO queryById(Integer id);
}
